home *** CD-ROM | disk | FTP | other *** search
- on progBar loopNum
- theDiv = member("repeatNum").text
- theNudge = 270 / theDiv
- if the width of sprite 22 = 270 then
- nothing()
- else
- set the width of sprite 22 to loopNum * theNudge
- set the floatPrecision to 2
- p = float(loopNum) / float(theDiv)
- p = integer(p * 100)
- put "(" & p & "%)" into field "Percentage"
- updateStage()
- end if
- end
-